package com.mccrea.pattern.bridge;

/**
 * @Classname Phone
 * @Description 手机抽象类
 * @Date 2021/5/8 0008 17:57
 * @Created by Mccrea_Gao
 */
public abstract class Phone {

    private IBrand iBrand;

    public Phone(IBrand iBrand) {
        this.iBrand = iBrand;
    }

    protected void open() {
        iBrand.open();
    }

    protected void close() {
        iBrand.close();
    }

    protected void call() {
        iBrand.call();
    }
}
